package ide.ccf.ccdesigner.views;

import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.part.ViewPart;
import org.eclipse.swt.*;
import ide.ccf.ccdesigner.views.embedded.SignalSlotEditorW;

/**
 * 信号/槽编辑器视图
 *
 */
public class SignalSlotEditorView extends ViewPart 
{
    private SignalSlotEditorW signalSloteditor;

    /**
     * 创建Part控制
     */
    public void createPartControl(Composite parent) 
    {
        signalSloteditor = new SignalSlotEditorW(parent, SWT.EMBEDDED);
    }

    /**
     * 设置焦点
     */
    public void setFocus() 
    {
        signalSloteditor.setFocus();
    }
}
